package com.budwk.app.sqfw.models;

import com.budwk.starter.common.openapi.annotation.ApiModel;
import com.budwk.starter.common.openapi.annotation.ApiModelProperty;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.util.Date;

/**
 * @program: wk-mini-dev-env
 * @description: 社区活动报名表
 * @author: LJT
 * @create: 2023-11-14 11:54
 **/
@Data
@Table("public.sqfw_rally_sign")
@Comment("社区活动报名表")
@ApiModel(description = "社区活动报名表")
public class Sqfw_rally_sign {
    private static final long serialVersionUID = 1L;

    @Column("id")
    @Name
    @Comment("编号")
    @ApiModelProperty(description = "ID")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    @PrevInsert(uu32 = true)
    private String id;

    /**
     * 活动id
     */
    @Column("rally_id")
    @Comment("活动id")
    @ApiModelProperty(description = "活动id")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String rallyId;

    /**
     * 活动标题
     *
     */
    private String rallyName;

    /**
     * 特殊标志
     */
    @Column("special_mark")
    @Comment("特殊标志")
    @ApiModelProperty(description = "特殊标志")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String specialMark;

    /**
     * 名称
     */
    @Column("name")
    @Comment("名称")
    @ApiModelProperty(description = "名称")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String name;

    /**
     * 性别
     */
    @Column("gender")
    @Comment("性别")
    @ApiModelProperty(description = "性别")
    @ColDefine(type = ColType.VARCHAR, width = 5)
    private String gender;

    /**
     * 生日
     */
    @Column("birthday")
    @Comment("生日")
    @ApiModelProperty(description = "生日")
    @ColDefine(type = ColType.TIMESTAMP, width = 29)
    private Date birthday;

    /**
     * 电话
     */
    @Column("phone")
    @Comment("电话")
    @ApiModelProperty(description = "电话")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String phone;

    /**
     * 身份证号
     */
    @Column("card_id")
    @Comment("身份证号")
    @ApiModelProperty(description = "身份证号")
    @ColDefine(type = ColType.VARCHAR, width = 20)
    private String cardId;

    /**
     * 网格
     */
    @Column("grid")
    @Comment("网格")
    @ApiModelProperty(description = "网格")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String grid;

    /**
     * 省
     */
    @Column("province")
    @Comment("省")
    @ApiModelProperty(description = "省")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String province;

    /**
     * 市
     */
    @Column("city")
    @Comment("市")
    @ApiModelProperty(description = "市")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String city;

    /**
     * 区
     */
    @Column("district")
    @Comment("区")
    @ApiModelProperty(description = "区")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String district;

    /**
     * 街道
     */
    @Column("county")
    @Comment("街道")
    @ApiModelProperty(description = "街道")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String county;

    /**
     * 社区
     */
    @Column("community")
    @Comment("社区")
    @ApiModelProperty(description = "社区")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String community;

    /**
     * 报名日期
     */
    @Column("create_date")
    @Comment("报名日期")
    @ApiModelProperty(description = "报名日期")
    @ColDefine(type = ColType.VARCHAR, width = 13)
    private Date createDate;

    /**
     * 签到标识
     */
    @Column("sign_falg")
    @Comment("签到标识")
    @ApiModelProperty(description = "签到标识")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer signFalg;

    @Column("info_json")
    @ColDefine(type = ColType.TEXT)
    private String infoJson;

    private String rallyContentJson;

    /**
     * 发布人单位
     */
    private String rallyReleaseDept;

    /**
     * 覆盖年龄
     */
    private String rallyIncludeAge;

    /**
     * 覆盖性别
     */

    private String rallyIncludeSex;

    /**
     * 覆盖范围（特殊人员）
     */
    private String rallyIncludeRange;

    /**
     * 覆盖范围
     */
    private String rallyIncludeArea;

    /**
     * 参与人员手机号
     */
    private String rallyJoinUser;

    /**
     * 活动类型1:报名，2文章发布
     */
    private String rallyType;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 报名条件
     */
    private String conditions;

    /**
     * 完结标识
     */
    private String finishStatus;

    private String ids;
}
